{{ define "title"}} {{ .Title}} {{end}}
{{ define "header"}} {{ partial "header" .}} {{end}}
{{ define "main"}}
<div id="main">
  <div class="hero">
    <h1>Plugins</h1>
    {{ .Site.Data.subtext.plugin.content | markdownify }}
    <br/>
    v{{.Site.Data.coredns.release.version}}
    <p></p>

    {{ .Scratch.Set "url1" "/2017/03/01/how-to-add-plugins-to-coredns/" }}
    {{ .Scratch.Set "link1" "Writing Plugins" }}
    {{ .Scratch.Set "class1" "primary" }}

    {{ .Scratch.Set "url2" "https://github.com/coredns/coredns/blob/master/plugin.md#documentation" }}
    {{ .Scratch.Set "link2" "Documenting Plugins" }}
    {{ .Scratch.Set "class2" "outline" }}

    {{ .Scratch.Set "url3" "/2017/07/25/compile-time-enabling-or-disabling-plugins/" }}
    {{ .Scratch.Set "link3" "Enabling Plugins" }}
    {{ .Scratch.Set "class3" "primary" }}

    {{ partial "plugin-action-button" . }}

  </div>
  <div id="components">
    <div class="row gutters">
      {{ range .Data.Pages.ByWeight }}
      <div class="col col-4 item">
        <h4><a href="{{ .Permalink }}">{{ .Title }}</a></h4>
        <p>{{ .Params.description | markdownify }}</p>
        <p>
            <i class="fa fa-code-fork" aria-hidden="true"></i> <a href="https://github.com/coredns/coredns/tree/master/plugin/{{ .Title }} ">Source</a>
        </p>
      </div>
      {{ end }}

    </div>
  </div>
</div>
{{ end }}

{{ define "footer"}} {{ partial "footer" .}} {{end}}
